package com.javajun.endofterm.service;

import com.javajun.endofterm.common.CommonService;
import com.javajun.endofterm.entity.Menu;
import com.javajun.endofterm.repository.MenuRepository;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * Author: Xiong Limin
 * Date: 2020-12-07-2:22 上午
 */
@Service
public class MenuService extends CommonService<Menu, Integer> {
    @Autowired
    private MenuRepository menuRepository;

    public Menu findByName(String name) {
        return  menuRepository.findByName(name);
    }
}
